<template>
	<view class="page" :style="{ 'height': (h-mt) + 'px', 'padding-top': mt + 'px' }">
    <c-nav-bar
      title=" "
      bgColor="transparent"
      :showHome="false"
    ></c-nav-bar>
		<view style="padding-top: 20rpx;display: flex;align-items: center;justify-content: space-around;">
			<image src="https://cdn.szhd.ycurm.top/order/icon8.png" mode="widthFix" style="width: 262rpx;position: relative;margin-left: 20rpx;margin-top: 100rpx;"></image>
			<image src="https://cdn.szhd.ycurm.top/order/icon7.png" mode="widthFix" style="width: 203rpx"></image>
		</view>
		
		<view class="box" @tap="goDetail(0,'船票')">
			<view class="info">
				<image src="https://cdn.szhd.ycurm.top/order/icon9.png" mode="widthFix" style="width: 72rpx;"></image>
				<view class="">
					<view class="tit">
						船票订单
					</view>
					<view class="name">
						查看船票订单列表
					</view>
				</view>
			</view>
			
			<image src="https://cdn.szhd.ycurm.top/order/icon10.png" mode="widthFix" style="width: 36rpx;"></image>
		</view>
		<view class="box"  @tap="goDetail(1,'酒店民宿')">
			<view class="info">
				<image src="https://cdn.szhd.ycurm.top/order/icon2.png" mode="widthFix" style="width: 72rpx;"></image>
				<view class="">
					<view class="tit">
						酒店民宿订单
					</view>
					<view class="name">
						查看酒店民宿订单列表
					</view>
				</view>
			</view>
			
			<image src="https://cdn.szhd.ycurm.top/order/icon10.png" mode="widthFix" style="width: 36rpx;"></image>
		</view>
		<view class="box" @tap="goDetail(2,'景点门票')">
			<view class="info">
				<image src="https://cdn.szhd.ycurm.top/order/icon4.png" mode="widthFix" style="width: 72rpx;"></image>
				<view class="">
					<view class="tit">
						景点门票订单
					</view>
					<view class="name">
						查看景点门票订单列表
					</view>
				</view>
			</view>
			
			<image src="https://cdn.szhd.ycurm.top/order/icon10.png" mode="widthFix" style="width: 36rpx;"></image>
		</view>
		<view class="box" @tap="goDetail(3,'船票+住宿')">
			<view class="info">
				<image src="https://cdn.szhd.ycurm.top/order/icon1.png" mode="widthFix" style="width: 72rpx;"></image>
				<view class="">
					<view class="tit">
						船票+住宿订单
					</view>
					<view class="name">
						查看船票+住宿订单列表
					</view>
				</view>
			</view>
			
			<image src="https://cdn.szhd.ycurm.top/order/icon10.png" mode="widthFix" style="width: 36rpx;"></image>
		</view>
		<view class="box" @tap="goDetail(4,'船票+景点')">
			<view class="info">
				<image src="https://cdn.szhd.ycurm.top/order/icon6.png" mode="widthFix" style="width: 72rpx;"></image>
				<view class="">
					<view class="tit">
						船票+景点订单
					</view>
					<view class="name">
						查看船票+景点订单列表
					</view>
				</view>
			</view>
			
			<image src="https://cdn.szhd.ycurm.top/order/icon10.png" mode="widthFix" style="width: 36rpx;"></image>
		</view>
		<view class="box" @tap="goDetail(5,'渔家乐')">
			<view class="info">
				<image src="https://cdn.szhd.ycurm.top/order/icon3.png" mode="widthFix" style="width: 72rpx;"></image>
				<view class="">
					<view class="tit">
						渔家乐订单
					</view>
					<view class="name">
						查看渔家乐订单列表
					</view>
				</view>
			</view>
			
			<image src="https://cdn.szhd.ycurm.top/order/icon10.png" mode="widthFix" style="width: 36rpx;"></image>
		</view>
		<view class="box" @tap="goDetail(6,'餐饮美食')">
			<view class="info">
				<image src="https://cdn.szhd.ycurm.top/order/icon5.png" mode="widthFix" style="width: 72rpx;"></image>
				<view class="">
					<view class="tit">
						餐饮美食
					</view>
					<view class="name">
						查看餐饮美食列表
					</view>
				</view>
			</view>
			
			<image src="https://cdn.szhd.ycurm.top/order/icon10.png" mode="widthFix" style="width: 36rpx;"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				h: uni.getSystemInfoSync().windowHeight,
				mt: uni.getSystemInfoSync().statusBarHeight + 44,
			}
		},
		methods: {
			goDetail(index,name){
				uni.navigateTo({
					url: '/pagesMy/order/index?typeIndex='+index+'&name='+name,
					success: res => {},
					fail: res => {},
					complete: res => {
						console.log(res)
					}
				});
			}
		}
	}
</script>

<style scoped lang="less">
	image{
		height: auto;
	}
	.page{
		background-image: url('https://cdn.szhd.ycurm.top/order/orderBg.png');
		background-size: 100% 100%;
		width: 100vw;
		min-height: 100vh;
		padding-bottom: 80rpx;
		.box{
			width: 673rpx;
			height: 186rpx;
			background: #FFFFFF;
			box-shadow: 0rpx 3rpx 6rpx 1rpx rgba(0,0,0,0.09);
			border-radius: 20rpx 20rpx 20rpx 20rpx;
			margin: 0 auto;
			padding-left: 32rpx;
			padding-right: 40rpx;
			align-items: center;
			display: flex;
			box-sizing: border-box;
			justify-content: space-between;
			margin-bottom: 16rpx;
			.info{
				display: flex;
				align-items: center;
			}
			.tit{
				font-size: 32rpx;
				font-weight: bold;
				margin-left: 32rpx;
			}
			.name{
				color: #C4C4C4;
				font-size: 24rpx;
				margin-left: 32rpx;
				font-weight: bold;
				margin-top: 16rpx;
			}
		}
	}
</style>
